//
// Created by dong on 2025/10/21.
//

#include "SActionTwo.h"

SActionTwo::SActionTwo(const string& str)
{
    m_text=str;
    this->color = {238,238,242};
}

string SActionTwo::text() const
{
    return m_text;

}

void SActionTwo::pressEvent(SDL_Event* msg)
{
    if (func)
    {
        func();
    }
}

void SActionTwo::setColor(const SDL_Color& color)
{
    this->color = color;
}

SDL_Color SActionTwo::getColor()
{
    return this->color;
}
